package kr.pfg.pfgTracer.view.workspace
{
	import display.CButton;
	
	import events.ButtonEvent;
	
	import flash.display.Sprite;

	public class VTab extends Sprite
	{
		protected var btnTab: CButton;
		
		protected var _log: String;
		
		public function VTab()
		{
			super();
		}
		protected function init(): void
		{
			btnTab.addEventListener( ButtonEvent.CLICK, onButtonClickListener );
		}
		
		override public function set width(value:Number):void
		{
			
		}
		override public function set height(value:Number):void
		{
			
		}
		
		
		public function get log(): String
		{
			return _log;
		}
		public function set log( data: String ): void
		{
			_log = data;
		}
		
		public function set enable( value: Boolean ): void
		{
			btnTab.keepUpButton = value;
		}
		
		protected function onButtonClickListener( e: ButtonEvent ): void
		{
			this.dispatchEvent( new ButtonEvent( ButtonEvent.CLICK, this.log ) );
		}
	}
}